package com.cb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cb.entity.ShoppingCart;

import java.util.List;

public interface ShoppingcartService extends IService<ShoppingCart> {
    //商品添加到购物车
    ShoppingCart add(ShoppingCart shoppingCart);

    //商品数量减少
    ShoppingCart sub(ShoppingCart shoppingCart);

    //查看购物车
    List<ShoppingCart> getCart();

    //清空购物车
    void clean();
}
